*Analyses performed using Stata/SE 14.2

*use replication data file MASTER_DFK_FINAL.dta

xtset ccode year

**Figure 1
twoway (lpoly legislative_areas_pos_NT year if gwf_autoc_new==1, lcolor(gs3)) (lpoly legislative_areas_pos_NT year if gwf_democ_new==1, lcolor(gs10) lpattern(longdash_dot)) if year>=1996&year<=2015, ylabel(.2 .25 .3 .35) ytitle("# Areas, Women's Rights Laws") xtitle("Year") legend(order(1 "Autocracy" 2  "Democracy"))
twoway (lpoly legislative_areas_pos_NT year if regime_compelec2==1, lcolor(gs3)) (lpoly legislative_areas_pos_NT year if regime_noncompelec2==1, lcolor(gs3) lpattern(dash)) (lpoly legislative_areas_pos_NT year if gwf_democ_new==1, lcolor(gs10) lpattern(longdash_dot)) if year>=1996&year<=2015, ylabel(.2 .25 .3 .35) ytitle("# Areas, Women's Rights Laws") xtitle("Year") legend(order(1 "Elec. Autoc." 2  "Closed Autoc." 3 "Democracy"))

**Table 2
*DV: Count # Areas
nbreg legislative_areas_pos_NT  l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc  l.v2csreprss i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)
nbreg legislative_areas_pos_NT   l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc l.v2csreprss hist_conflict_5_fill l.v2x_gender l.cumulative_legislation_pos l.cedaw_rat l.world_legislation_dich i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)
*Economic & Social Equality
logit econ_soc_right_leg   l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2 l.logwdi_gdppc l.v2csreprss hist_conflict_5_fill l.v2x_gender l.cumulative_legislation_pos l.cedaw_rat l.world_legislation_dich  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)
*Violence Against Women
logit violence_leg  l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc l.v2csreprss hist_conflict_5_fill l.v2x_gender l.cumulative_legislation_pos l.cedaw_rat l.world_legislation_dich  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)
*Political Representation
logit political_representation_leg l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2   l.logwdi_gdppc l.v2csreprss hist_conflict_5_fill l.v2x_gender l.cumulative_legislation_pos l.cedaw_rat l.world_legislation_dich  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)
*Health
logit health_care_fgm_leg  l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc l.v2csreprss hist_conflict_5_fill l.v2x_gender l.cumulative_legislation_pos l.cedaw_rat l.world_legislation_dich  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)

**Table 3
nbreg legislative_areas_pos_NT  l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc  l.v2csreprss i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)
*low aid, low shaming
margins, at(l.c.AD_total_aid_gdp_3yravg=.00035 l.sum3_lnothercount=12.65) atmeans
*high aid, low shaming
margins, at(l.c.AD_total_aid_gdp_3yravg=.09 l.sum3_lnothercount=12.65) atmeans
*low aid, high shaming
margins, at(l.c.AD_total_aid_gdp_3yravg=.00035 l.sum3_lnothercount=23.81) atmeans
*high aid, high shaming
margins, at(l.c.AD_total_aid_gdp_3yravg=.09 l.sum3_lnothercount=23.81) atmeans

**Figure 2
*gen aid_percent_lag=l.aid_percent
*gen sum3_lnothercount_lag=l.sum3_lnothercount
*gen logwdi_gdppc_lag=l.logwdi_gdppc
*gen v2csreprss_lag=l.v2csreprss
*gen regime_noncompelec2_lag=l.regime_noncompelec2

*requires installation of the Clarify package by Tomz, Wittenberg, and King
net from https://gking.harvard.edu/clarify

*Political Representation
estsimp logit political_representation_leg aid_percent_lag sum3_lnothercount_lag regime_noncompelec2_lag   logwdi_gdppc_lag v2csreprss_lag  Miller_region2_2 Miller_region2_3 Miller_region2_4 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)

setx sum3_lnothercount_lag 12.65 (aid_percent_lag   logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_2 Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(sum3_lnothercount_lag 12.65 23.81)

setx aid_percent_lag  .037 ( sum3_lnothercount_lag  logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_2 Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(aid_percent_lag .037 9.01)

drop b1-b9

*Economic & Social Equality
estsimp logit econ_soc_right_leg aid_percent_lag sum3_lnothercount_lag regime_noncompelec2_lag   logwdi_gdppc_lag v2csreprss_lag  Miller_region2_1 Miller_region2_2 Miller_region2_3 Miller_region2_4 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)

setx sum3_lnothercount_lag 12.65 (aid_percent_lag   logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_1 Miller_region2_2 Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(sum3_lnothercount_lag 12.65 23.96)

setx aid_percent_lag  .037 ( sum3_lnothercount_lag  logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_2 Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(aid_percent_lag .037 9.01)

drop b1-b10

*Violence Against Women
estsimp logit violence_leg aid_percent_lag sum3_lnothercount_lag regime_noncompelec2_lag   logwdi_gdppc_lag v2csreprss_lag  Miller_region2_1 Miller_region2_2 Miller_region2_3 Miller_region2_4 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)

setx sum3_lnothercount_lag 12.65 (aid_percent_lag   logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_1 Miller_region2_2 Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(sum3_lnothercount_lag 12.65 23.96)

setx aid_percent_lag  .037 ( sum3_lnothercount_lag  logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_2 Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(aid_percent_lag .037 9.01)

drop b1-b10

*Health
estsimp logit health_care_fgm_leg aid_percent_lag sum3_lnothercount_lag regime_noncompelec2_lag   logwdi_gdppc_lag v2csreprss_lag Miller_region2_3 Miller_region2_4 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, nolog vce(cluster ccode)

setx sum3_lnothercount_lag 12.65 (aid_percent_lag   logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(sum3_lnothercount_lag 12.65 23.96)

setx aid_percent_lag  .037 ( sum3_lnothercount_lag  logwdi_gdppc_lag    v2csreprss_lag) mean (Miller_region2_3 Miller_region2_4 regime_noncompelec2_lag) median 
simqi, fd(pr) changex(aid_percent_lag .037 9.01)

drop b1-b10

**Table 4
*Party Ban
reg v2psparban l.v2psparban  l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc   l.v2csreprss   i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, cluster(ccode)
*Civil Society Control
reg v2cseeorgs l.v2cseeorgs   l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc  l.v2csreprss  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, cluster(ccode)
*EMB Autonomy
reg v2elembaut l.v2elembaut   l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc  l.v2csreprss   i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, cluster(ccode)
*Judicial Reform
reg v2jureform    l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc   l.v2csreprss  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, cluster(ccode)
*Torture
reg v2cltort l.v2cltort   l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc   l.v2csreprss  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, cluster(ccode)
*Killings
reg v2clkill l.v2clkill   l.c.AD_total_aid_gdp_3yravg l.sum3_lnothercount l.regime_noncompelec2  l.logwdi_gdppc   l.v2csreprss  i.Miller_region2 if Miller_region2~=5&year>=1996&gwf_autoc_new==1, cluster(ccode)



